#include <hidef.h>      /* common defines and macros */
#include <mc9s12dp256.h>     /* derivative information */
#include <string.h>

#include "OS.h"
#include "OS_Task.h"

#include "app.h"

#pragma LINK_INFO DERIVATIVE "mc9s12dp256b"

app Application;


extern "C" void taskScan(void)
{
  Application.ScanInputs();
}

extern "C" void taskRefresh(void)
{
  Application.RefreshOutputs();
}

extern "C" void taskChecker(void)
{
  _FEED_COP();
}

void main(void) {
  /* put your own code here */
  OS_Init();
  Application.Init();
  
  EnableInterrupts;
  OS_Run();
}
